package com.wordLearning.word.application.convert;

import com.wordLearning.word.application.dto.WordDTO;
import com.wordLearning.word.domain.entity.WordBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface WordInfoDTOConverter {
    WordInfoDTOConverter INSTANCE = Mappers.getMapper(WordInfoDTOConverter.class);

    WordDTO convertBOToDTO(WordBO wordBO);

    WordBO convertDTOToBO(WordDTO wordDTO);

    List<WordDTO> convertBOListToDTOList(List<WordBO> bolist);
}
